package com.example.makerspace.controller;

import com.example.makerspace.dto.Result;
import com.example.makerspace.dto.robotDTO.RobotDTO;
import com.example.makerspace.service.RobotService;
import com.example.makerspace.service.impl.RobotServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/robot")
@Api(tags = "机器人模块")
public class RobotController {

    @Resource
    public RobotService robotService;
    @ApiOperation(value="  ",notes ="机器人自动回答接口说明")
    @GetMapping("/invokeRobot")
    public Result  invokeRobot(@RequestParam("spoken") String  spoken){
        return  robotService.invokeRobot(spoken);
    }
}
